import request from "./request";
const Req = new request()

export function list(page = 0, limit = 10) {
    return Req.get({
        url: '/goodsList',
        data: {
            page,
            limit
        }
    })
}
export function del(_id) {
    return Req.post({
        url: '/goodDelete',
        data: {
            _id
        }
    })
}
export function add(data) {
    return Req.post({
        url: '/goodsAdd',
        data: data
    })
}
export function update({ }) {
    return Req.post({
        url: '/goodEdit',
        data: {

        }
    })
}